package com.dao.impl;

import com.bean.Admin;
import com.dao.AdminDao;

public class AdminDaoImpl extends BaseDao implements AdminDao {


    @Override
    public int modifyPass(String adminid, String password) {
        String sql="update admin set `password`=? where adminid=?";
        return  update(sql,password,adminid);

    }

    @Override
    public Admin queryOne(String adminid, String password) {
        String sql="select `adminid`,`name`,`telephone`,`password` from admin where adminid=? and password=?";
        return queryForOne(Admin.class,sql,adminid,password);
    }
}
